class CreateCards < ActiveRecord::Migration
  def self.up
    create_table :cards do |t|
      t.column :question, :string
      t.column :answer, :text
      t.column :created_at, :datetime
      t.column :published_at, :datetime
    end
  end

  def self.down
    drop_table :cards
  end
end
